<h1>Listing guests</h1>

<table>
  <tr>
    <th>Ip address</th>
    <th>Created at</th>
    <th>Updated at</th>
  </tr>
  
<% for guest in @guests %>
  <tr>
    <td><%=h guest.ip_address %></td>
    <td><%=h guest.created_at %></td>
    <td><%=h guest.updated_at %></td>
    <td><%= link_to 'Show', guest_path(guest) %></td>
    <td><%= link_to 'Edit', edit_guest_path(guest) %></td>
    <td><%= link_to 'Destroy', guest_path(guest), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New guest', new_guest_path %>